package dal.object.grounds;

import gui.PlayersMap;
import gui.event.GameController;

import java.awt.image.BufferedImage;

import dal.object.Ground;
import dal.object.tools.Umbrella;
import dal.FileIO;

public class Abyss extends Ground {
	private static final BufferedImage pic = FileIO.readPic(path + "szakadek.png");
	public static final int FRICTION_COEFFICIENT = 1;
	
	public Abyss() {
		img = pic;
	}
	
	public int getFrictionCoefficient() {
		if( !PlayersMap.ball.hasTool(Umbrella.class) ){
			GameController.gameOver();
		}
		return FRICTION_COEFFICIENT;
	}

	public double getManoeuvrability() {
		return 0.1d;
	}
}